package com.itkaien.demo01.UserBizController;

import org.springframework.stereotype.Service;
import org.springframework.web.servlet.function.ServerRequest;
import org.springframework.web.servlet.function.ServerResponse;

@Service
public class UserBizHanlder {


    public ServerResponse login(ServerRequest serverRequest){

        try {
            System.out.println("login");

            int exception = 1/0;
        }catch (Exception e){
            return ServerResponse.status(500).body("login fail");
        }

        return ServerResponse.ok().body("login success");
    }
}
